home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / include / user / RCS / sys.h,v < prev    next >
Encoding:
Text File  |  1992-07-17  |  4.5 KB  |  213 lines

  1. head     1.5;
  2. branch   ;
  3. access   ;
  4. symbols  srv030:1.5 srv027:1.4 srv026:1.4 srv024:1.4 srv021:1.4 srv019:1.4 srv018:1.4 srv016:1.4 srv014:1.4 srv010:1.4 srv008:1.4 srv007:1.4 srv006:1.4 srv005:1.4 srv004:1.4 srv003:1.4 srv002:1.4 srv001:1.4;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.5
  10. date     92.07.16.17.25.24;  author kupfer;  state Exp;
  11. branches ;
  12. next     1.4;
  13.  
  14. 1.4
  15. date     92.04.16.11.09.06;  author kupfer;  state Exp;
  16. branches ;
  17. next     1.3;
  18.  
  19. 1.3
  20. date     91.10.04.11.55.58;  author kupfer;  state Exp;
  21. branches ;
  22. next     1.2;
  23.  
  24. 1.2
  25. date     91.09.26.12.26.08;  author kupfer;  state Exp;
  26. branches ;
  27. next     1.1;
  28.  
  29. 1.1
  30. date     91.09.08.20.55.37;  author kupfer;  state Exp;
  31. branches ;
  32. next     ;
  33.  
  34.  
  35. desc
  36. @@
  37.  
  38.  
  39. 1.5
  40. log
  41. @Add Sys_CharArray typedef.
  42. @
  43. text
  44. @/*
  45.  * sys.h --
  46.  *
  47.  *     User-level definitions of routines and types for the sys module.
  48.  *
  49.  * Copyright 1986, 1988 Regents of the University of California
  50.  * Permission to use, copy, modify, and distribute this
  51.  * software and its documentation for any purpose and without
  52.  * fee is hereby granted, provided that the above copyright
  53.  * notice appear in all copies.  The University of California
  54.  * makes no representations about the suitability of this
  55.  * software for any purpose.  It is provided "as is" without
  56.  * express or implied warranty.
  57.  *
  58.  * $Header: /user5/kupfer/spriteserver/include/user/RCS/sys.h,v 1.4 92/04/16 11:09:06 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
  59.  *
  60.  */
  61.  
  62. #ifndef _SYSUSER
  63. #define _SYSUSER
  64.  
  65. #ifndef _SPRITE
  66. #include <sprite.h>
  67. #endif
  68. #include <cfuncproto.h>
  69.  
  70. typedef enum {
  71.     SYS_WARNING,
  72.     SYS_FATAL
  73. } Sys_PanicLevel;
  74.  
  75. /*
  76.  * Flags for Sys_Shutdown.
  77.  *
  78.  *    SYS_REBOOT         Reboot the system. 
  79.  *    SYS_HALT           Halt the system.
  80.  *    SYS_KILL_PROCESSES Kill all processes.
  81.  *    SYS_DEBUG         Enter the debugger.
  82.  *    SYS_WRITE_BACK     Write back the cache after killing all processes but
  83.  *             obviously before halting or rebooting.
  84.  */
  85.  
  86. #define SYS_REBOOT              0x01
  87. #define SYS_HALT                0x02
  88. #define    SYS_KILL_PROCESSES    0x04
  89. #define    SYS_DEBUG        0x08
  90. #define    SYS_WRITE_BACK        0x10
  91.  
  92. /*
  93.  * Structure that is filled in by Sys_GetMachineInfo.
  94.  */
  95.  
  96.  
  97. /*
  98.  * Machine architecture and type values from Sys_GetMachineInfo().
  99.  */
  100.  
  101. typedef struct {
  102.     int architecture;        /* machine architecture */
  103.     int type;            /* machine type */
  104.     int    processors;        /* number of processors */
  105. } Sys_MachineInfo;
  106.  
  107. #define SYS_SPUR        1
  108. #define SYS_SUN2        2
  109. #define SYS_SUN3        3
  110. #define SYS_SUN4        4
  111. #define SYS_MICROVAX_2        5
  112. #define SYS_DS3100        6   /* DecStation 3100 */
  113. #define SYS_SYM                 7   /* Sequent symmetry */
  114. #define SYS_DS5000              8   /* DecStation 5000 */
  115.  
  116. #define SYS_SUN_ARCH_MASK    0xf0
  117. #define    SYS_SUN_IMPL_MASK    0x0f
  118.  
  119. #define    SYS_SUN_2        0x00
  120. #define    SYS_SUN_3        0x10
  121. #define    SYS_SUN_4        0x20
  122. #define    SYS_SUN_4_C        0x50
  123.  
  124. #define SYS_SUN_2_50        0x02
  125. #define SYS_SUN_2_120        0x01
  126. #define SYS_SUN_2_160        0x02
  127. #define SYS_SUN_3_75        0x11
  128. #define SYS_SUN_3_160        0x11
  129. #define SYS_SUN_3_50        0x12
  130. #define    SYS_SUN_3_60        0x17
  131. #define    SYS_SUN_4_200        0x21
  132. #define    SYS_SUN_4_C_60        0x51
  133. #define    SYS_SUN_4_C_65        0x53
  134.  
  135. /* 
  136.  * Type definition for the Sprite MIG stub.
  137.  */
  138.  
  139. typedef char *Sys_CharArray;    /* arbitrary character array */
  140.  
  141. /* 
  142.  * Function declarations:
  143.  */
  144.  
  145. extern char *        Sys_CallName _ARGS_((int callNumber));
  146.  
  147. /* 
  148.  * These are user declarations and they potentially conflict with names in 
  149.  * the server, so don't declare them when building the server.
  150.  */
  151. #ifndef SPRITED
  152. extern ReturnStatus    Sys_GetMachineInfo _ARGS_((int size,
  153.                            Address bufferPtr));
  154. extern ReturnStatus    Sys_Shutdown _ARGS_((int flags, char *rebootString));
  155. #endif
  156.  
  157. #endif /* _SYSUSER */
  158. @
  159.  
  160.  
  161. 1.4
  162. log
  163. @Add Sys_CallName and function prototypes.
  164. @
  165. text
  166. @d15 1
  167. a15 1
  168.  * $Header: /user5/kupfer/spriteserver/include/user/RCS/sys.h,v 1.3 91/10/04 11:55:58 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
  169. d92 9
  170. @
  171.  
  172.  
  173. 1.3
  174. log
  175. @Don't declare Sys_GetMachineInfo or Sys_Shutdown when building the server.
  176. @
  177. text
  178. @d15 1
  179. a15 1
  180.  * $Header: /r3/kupfer/spriteserver/include/user/RCS/sys.h,v 1.2 91/09/26 12:26:08 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
  181. d25 1
  182. d92 3
  183. d100 3
  184. a102 2
  185. extern ReturnStatus        Sys_GetMachineInfo();
  186. extern ReturnStatus        Sys_Shutdown();
  187. @
  188.  
  189.  
  190. 1.2
  191. log
  192. @Add Sys_Shutdown.
  193. @
  194. text
  195. @d15 1
  196. a15 1
  197.  * $Header: /r3/kupfer/spriteserver/include/user/RCS/sys.h,v 1.1 91/09/08 20:55:37 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
  198. d91 5
  199. d98 1
  200. @
  201.  
  202.  
  203. 1.1
  204. log
  205. @Initial revision
  206. @
  207. text
  208. @d15 1
  209. a15 1
  210.  * $Header: /sprite/src/lib/include/RCS/sys.h,v 1.10 90/11/09 16:45:02 jhh Exp $ SPRITE (Berkeley)
  211. d92 1
  212. @
  213.